package sctl;

import java.util.*;

public class Question 
{
	private String question;
	private Map<String, CUM_DENS_FUNC> setOfCDFs;
	
	public Question(String question)
	{
		this.question = question;
		setOfCDFs = new TreeMap<String, CUM_DENS_FUNC>();
		
		for(int n=6; n<=25; n++)
		{
			setOfCDFs.put("N"+n, new CUM_DENS_FUNC("N"+n, this.question));
		}
	}
	
	public void addCDF(String n, CUM_DENS_FUNC cdf)
	{
		setOfCDFs.put(n, cdf);
	}
	
	public CUM_DENS_FUNC getCDF(String n)
	{
		return setOfCDFs.get(n);
	}
	
	public String getQuestion()
	{
		return this.question;
	}
	
	public String printCDFs()
	{
		String output = "";
		
		for(int n=6; n<=25; n++)
		{
			output += setOfCDFs.get("N"+n).printTuples();
		}
		
		return output;
	}
	
}
